<template>
  <div ref="app">
    <!-- <iframe class="iframe" allowTransparency="true" src="http://localhost:82/h5/townList"></iframe> -->
    <iframe class="iframe" src="/static/Description.html"></iframe>
  </div>
</template>

<script setup>
import { onMounted } from "vue";


onMounted(()=>{
  // 监听 子页面传递的消息
  window.addEventListener('message',function(event){
    var txt = "这是A页面，收到子页面发送的数据：\n";
    console.log(txt,event);
  }, false);
})
</script>

<style>
iframe {
  width: 100vw;
  height: 100vh;
  border: none !important;
}
</style>
